<script>
import AppNav from "@/components/AppNav.vue";

export default {
name: "App",
    components: {AppNav}
}
</script>

<template>
    <div class="container">
        <AppNav v-if="!$route.meta.hideNav"></AppNav>
<!--        <keep-alive>-->
<!--            <router-view v-if="$route.meta.isKeep"></router-view>-->
<!--        </keep-alive>-->
<!--        <router-view v-if="!$route.meta.isKeep"></router-view>-->

<!--        <keep-alive>-->
<!--            <router-view></router-view>-->
<!--        </keep-alive>-->

<!--        <keep-alive include="AddGoods,GoodsList">-->
<!--            <router-view></router-view>-->
<!--        </keep-alive>-->

        <keep-alive exclude="AddGoods">
            <router-view></router-view>
        </keep-alive>
    </div>
</template>

<style scoped>
    .container{
        text-align: center;
    }
</style>